package cn.wolfcode.mapper;

import cn.wolfcode.domain.Consumption;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ConsumptionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Consumption record);

    Consumption selectByPrimaryKey(Long id);

    List<Consumption> selectAll();

    int updateByPrimaryKey(Consumption record);

    List<Consumption> selectForList(QueryObject qo);

    Consumption selectByConsumptionCon(String cno);

    void updateConsume(@Param("id") Long id,@Param("status") Integer status,@Param("date") Date date,@Param("payeeId") Long payeeId);

    void updateAudit(@Param("id") Long id,@Param("status") Integer status,@Param("auditTime") Date auditTime,@Param("auditorId") Long auditorId);
}